import request from '@/plugin/axios'

export function queryDepts (data) {
  return request({
    url: '/v1/dept/list',
    method: 'post',
    data
  })
}

export function addDept (data) {
  return request({
    url: '/v1/dept/add',
    method: 'post',
    data
  })
}

export function updateDept (id, data) {
  return request({
    url: `/v1/dept/updateById/${id}`,
    method: 'post',
    data
  })
}

export function removeDept (data) {
  return request({
    url: `/v1/dept/deleteByIds`,
    method: 'post',
    data
  })
}
